﻿#include "camerathread.h"


CameraThread::CameraThread(ImageSourceCameraOperate * mcameraOperate)
{
    this->cameraOperate = mcameraOperate;
}
void CameraThread::run()
{
    while(isStopThread == false){
        cv::Mat mat;
        if(cameraOperate->getSingleImg2Mat(&mat) == true)
        {
            emit showMat_sig(mat);
            msleep(10);
        }

//        mat = imread("C:\\Users\\Administrator\\Desktop\\lines\\5.5.BMP",0);
//        emit showMat_sig(mat);
//        sleep(1);

    }
}
